home *** CD-ROM | disk | FTP | other *** search
- /** \file tokenizer.h
- * definitions of input output classes that read and write from string.
- */
-
-
- #ifndef __tokenizer_h__
- #define __tokenizer_h__
-
- #include "yacasbase.h"
- #include "lispstring.h"
- #include "lispio.h"
- #include "lisphash.h"
- class LispTokenizer : public YacasBase
- {
-
- public:
- /// NextToken returns a string representing the next token,
- /// or an empty list.
- virtual LispStringPtr NextToken(LispInput& aInput,
- LispHashTable& aHashTable);
- virtual ~LispTokenizer(){}
- private:
- LispString iToken; //Can be used as a token container.
- };
-
- // utility functions
- LispBoolean IsDigit(LispChar c);
- LispBoolean IsAlpha(LispChar c);
- LispBoolean IsAlNum(LispChar c);
- LispBoolean IsSymbolic(LispChar c);
-
-
-
- #endif
-
-
-